package com.aop.dao;

import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
public class UserDaoImpl implements UserDao {
    @Override
    public List<String> getNames() {
        List<String> names = new ArrayList<>();
        names.add("jack");
        names.add("tom");
        names.add("mike");
        return names;
    }

    @Override
    public int add() {
        System.out.println("UserDaoImpl...add");
        return 0;
    }
}
